package commonmodel

var Page = PageInfo{}

type PageInfo struct {
	Total int    `json:"total"` //总数
	Cur   int    `json:"cur"`   //当前页数
	PNum  int    `json:"pNum"`  //每页记录数
	Order string `json:"order"` //排序
}

type ApiListReq struct {
	Page     int `v:"required|integer|between:1,9999#查询页码不能为空|页码参数有误|页码应当在:min到:max之间"`
	PageSize int `v:"required|integer|between:1,100#每页查询数量不能为空|每页条数有误|每页查询数量应当在:min到:max之间"`
}

type ServiceListReq struct {
	Page     int
	PageSize int
}

type ApiDelReq struct {
	Ids []int `v:"required#id不能为空"`
}

type ServiceDelReq struct {
	Ids []int
}
